OPENCODE_ENHANCEMENTS — REUSE GUIDE

Outcome: choose your own OpenCode model from VS Code, attach selected code,
ask a read-only question, inspect reported token counters and continue in an
interactive OpenCode terminal when you want edits.

REQUIREMENTS
Desktop VS Code 1.96+, OpenCode v2 (tested v2.0.23), a trusted project and a
working compatible model endpoint or existing OpenCode model configuration.
Node 22+ is needed to build or run the included unit checks; the installed
extension has no runtime npm dependencies. API/GPU access is not included.
Browser-only VS Code, Windows/Linux live integration and remote workspaces
have not been verified for this edition.

MODEL SETUP
Native Pick Model imports existing OpenCode models without loading profile
keys. Model runs receive only the selected provider credential. Add provider supports
OpenAI-compatible HTTPS endpoints and loopback HTTP for Ollama, LM Studio
and vLLM. Use the exact server model ID. Enter only confirmed context and
output token limits; blank values use OpenCode defaults. A configured context
limit does not establish the server's capacity. Check setup shows CLI version.
Set Optimize: OpenCode Path if the executable cannot be discovered.

BOUNDARIES
The default attachment cap is 32,000 characters. OpenCode can also read the
trusted project through permitted read/search tools and retain session
history; that attachment cap does not bound all model context. Project plugins
and configuration still apply. Interactive terminal behavior uses normal
OpenCode permission prompts. No automatic edit approval is granted.
One sidebar run executes at a time; timeout and Stop cancel its local process.
Token input/output/reasoning/cache categories follow OpenCode reports and
saved session counters; they are not a provider invoice or budget limiter.
Provider profiles are saved separately from keys. Sidebar history and tally
are in memory; OpenCode keeps its own local session database. Export opens
an untitled report for your review before saving or sharing.

SOURCE AND CHECKS
Run node --test source/test/core.test.js for thirteen dependency-free checks.
For source builds: cd source; npm ci; npm test; mkdir -p dist; npm run package.
The included extension host check needs desktop VS Code and OpenCode v2.
It uses isolated storage and a synthetic loopback model, with no paid endpoint.
On macOS it tests /Applications/Visual Studio Code.app in a separate profile.
A supplied GitHub Actions matrix runs unit/package checks on all three OSs;
configuration alone is not a recorded passing run.

UPSTREAM PATCHES
source/enhancements contains recursive URL credential-redaction and narrow
terminal-label patches, matching OpenCode v2.0.23. Application instructions
and upstream MIT notice are included. They do not alter your installed CLI.
Full patched OpenCode build and integration remain unverified. These patches
also appear in K3 Workbench; this package's distinct outcome is the VS Code
extension and setup workflow, not a second patch-only prize.

REUSE
The supplied BioInfo Solutions one-person license applies to original
materials. Preserve OpenCode's separate MIT notice and permissions. Project
outputs belong to you. Organization or redistribution rights require their
own agreement. Future editions, custom development and ongoing support are
separate arrangements.
